<div class="right-panel">
    <!--cont-top Start-->
    <div class="cont-top">
        <div class="left-cr"></div>
        <div class="right-cr"></div>
    </div>
    <!--cont-top End-->
    <!---left-nav Sart-->
    <div class="right-nav">
        <?php
        echo $this->session->flash();
        echo $this->Form->create("User");
        ?>
        <h2><?php echo __('UPDATE_STAFF'); ?><span class="back-align">
<?php echo $this->html->link('<< ' . __('BACK', true), array('controller' => 'users', 'action' => 'mydashboard'), array('div' => false, 'alt' => '<< ' . __('BACK', true), 'title' => '<< ' . __('BACK', true), 'class' => 'back-nav', 'escape' => false)); ?>
            </span></h2>
        <!-- register Starts -->
        <div class="register">
            <div class="mandatory2">( <span class="astric">*</span> Compulsory Fields )</div>

            <div class="form-padd">

                <!--introduction Start-->
                <div class=" introduction">
                    
                     <ul class="form-content">
                        <li>
                            <label><?php echo __('USERID'); ?>  :</label>
                            <?php echo $this->Form->input('User.username', array('maxlength' => '35', 'class' => 'text-input small-wdh required', 'label' => false, 'disabled' => 'disabled')); ?>
                        </li>
                    </ul>
                   <ul class="form-content">
                        <li>
                            <label><?php echo __('EMAIL'); ?><span class="astric">*</span>  :</label>
                            <?php echo $this->Form->input('User.email', array('maxlength' => '35', 'class' => 'text-input small-wdh email required', 'label' => false)); ?>
                        </li>
                    </ul>
                   
                   
                    <ul class="form-content">
                        <li>
                            <label><?php echo __('E_NAME'); ?> <span class="astric">*</span> :</label>
<?php echo $this->Form->input('User.e_name', array('maxlength' => '35', 'class' => 'text-input small-wdh required', 'label' => false)); ?>

                        </li>
                    </ul>
                    <ul class="form-content">
                        <li>
                            <label><?php echo __('C_NAME'); ?> <span class="astric">*</span> :</label>
<?php echo $this->Form->input('User.c_name', array('maxlength' => '35', 'class' => 'text-input small-wdh required', 'label' => false)); ?>

                        </li>
                    </ul>

                   <ul class="form-content">
                        <li>
                            <label><?php echo __('PHONE'); ?>  :</label>
                            <?php echo $this->Form->input('User.contact_phone', array('maxlength' => '35', 'class' => 'text-input small-wdh required', 'label' => false)); ?>
                        </li>
                    </ul>
                   <ul class="form-content">
                        <li>
                            <label><?php echo __('PASSWORD'); ?> :</label>
                            <?php echo $this->Form->input('User.pwd', array('maxlength' => '35', 'class' => 'text-input small-wdh required', 'label' => false, 'type' => 'password')); ?>
                        </li>
                    </ul>
                   
                   <ul class="form-content">
                        <li>
                            <label><?php echo __('RESIGN_DATE'); ?> :</label>
                            <?php echo $this->Form->input('User.date_resigned', array('type' => 'textfield', 'id'=>'datepicker', 'label' => false)); ?>
                        </li>
                    </ul>
                    
                    <?php
                   if(!$userType){?>
                    <ul class="form-content">
                        <li>
                            <label><?php echo __('ON_LEAVE'); ?> :</label>
                            <?php
                            
                            echo $this->Form->checkbox('User.on_leave', array('hiddenField' => false,'class'=>'chk-bx','label'=>false));
                            
                            ?>
                        </li>
                    </ul>
                <?php }?>
                
                </div>
                <!--introduction End-->
                <div class="clear"></div>
                <div class="actionbtns">
                    <?php echo $this->Form->submit(__('UPDATE', true), array('class' => 'button', 'div' => false, 'alt' => __('SAVE', true), 'title' => __('SAVE', true), 'style' => "width:80px;")); ?>
                    <div class="buttonEnding"></div>
                    &nbsp;&nbsp;
                </div>
            </div>

            <!-- register End -->
<?php echo $this->Form->end();
?>
        </div>        
    </div>
</div>
<script>
    $(document).ready(function(){
        $("#datepicker").datepicker({
                dateFormat: 'yy-mm-dd',
                changeMonth: true,
                changeYear: true,
            }
        );
    });
    jQuery.browser = {};
    (function () {
        jQuery.browser.msie = false;
        jQuery.browser.version = 0;
        if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) {
            jQuery.browser.msie = true;
            jQuery.browser.version = RegExp.$1;
        }
    })();
</script>